class Person():

    # self  相当于this
    def __init__(self, name: str, age: int):
        #  增加一个熟悉并赋值
        self._name = name
        self.age = age

    def print(self):
        print(self._name, self.age)


s = Person("张三", 23)

s.print()

print(s)
s.age = 24

print(s.age)


class Student(Person):
    # 占位符
    # pass

    def __init__(self):
        #  子类在初始化的时候需要先初始化父类
        super(Student, self).__init__("张三", 23)


s = Student()

s.print()
